home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / HDX_BACK / HDXPCH / BSL.H < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-09  |  1.1 KB  |  35 lines

  1. /*
  2.  * BSL.H
  3.  *    Constants defined for routines associate with the Bad Sector List.
  4.  */
  5.  
  6. /* portions of BSL */ 
  7. #define    VENDOR 0    /* vendor BSL */
  8. #define    USER 1        /* user BSL */
  9. #define    MEDIA 2     /* media (vendor + user) BSL */
  10. #define    UNUSED 3    /* unused part of BSL */
  11.  
  12. /* magic sum (byte-wise) of a valid BSL */
  13. #define    BSLMAGIC 0xa5
  14.  
  15. /* BSL info */
  16. #define    STBSL 1L    /* BSL STarts at physical sector 1 */
  17. #define BPE 3        /* Bytes Per Entry */
  18. #define RENT 2        /* num Reserved ENTries */
  19. #define    EPS (512/BPE)    /* Entries Per Sector */
  20.  
  21. /* kind of BSL to be created */
  22. #define    NEW 0        /* create a totally new BSL */
  23. #define    EXPAND 1    /* expand an existing BSL */
  24.  
  25.  
  26. /* Maximum number of entries allowed for USER bad sectors in BSL */
  27. #define WARNBADSECTS    128
  28.  
  29. /* error numbers returned by rountines manipulating the BSL */
  30. #define    NOBSL  (-2)    /* BSL does not exist */
  31. #define    INVALID  (-3)    /* BSL does not checksum to BSLMAGIC */
  32. #define    NOMEM (-4)    /* not enough memory to read in BSL */
  33. #define NOTADDED (-5)    /* no entry is added to BSL */
  34. #define    USRFULL (-6)    /* user list is full */
  35.